/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.yuhanginfo.modules.sys.entity;

import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotNull;

import com.yuhanginfo.common.persistence.DataEntity;

/**
 * 公告信息Entity
 * @author Y.j
 * @version 2017-09-13
 */
public class Announcement extends DataEntity<Announcement> {
	
	private static final long serialVersionUID = 1L;
	private String announcementGroupId;
	private String title;		// 公告标题
	private String type;		// 公告分类
	private String content;		// 内容
	private Integer status;		// 状态:0未发布，1已发布
	
	public Announcement() {
		super();
	}

	public Announcement(String id){
		super(id);
	}

	@Length(min=1, max=100, message="公告标题长度必须介于 1 和 100 之间")
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	
	public String getType() {
		return type;
	}
	
	@NotNull(message="公告分类不能为空")
	public String getAnnouncementGroupId() {
		return announcementGroupId;
	}

	public void setAnnouncementGroupId(String announcementGroupId) {
		this.announcementGroupId = announcementGroupId;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}
	
}